package com.terren.spider.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.spider.db.basic.BasicServiceSupportImpl;
import com.terren.spider.db.service.ZhihuContentService;
import com.terren.spider.entity.biz.ZhihuContent;

@Service("zhihuContentService")
public class ZhihuContentServiceImpl extends BasicServiceSupportImpl implements ZhihuContentService{
	private final String SQL_MAPPER = "zhihuContentMapper.";
	private final String SQL_ARTICLE_MAPPER = "zhiHuArticleMapper.";

	@Override
	public void save(List<ZhihuContent> items) throws Exception {
		basicDao.save(SQL_MAPPER+"addZhihuContent", items);
	}

	@Override
	public void saveArticles(List<ZhihuContent> items) throws Exception {

		basicDao.save(SQL_ARTICLE_MAPPER+"addZhiHuArticle", items);
	}
	
	
}
